#!/bin/bash -i

yum install git

git --version

yum install epel-release -y

yum install nodejs -y

yum install npm -y

node -v

wget https://dl.yarnpkg.com/rpm/yarn.repo -O /etc/yum.repos.d/yarn.repo

yum install yarn -y

yarn --version

 cd /opt/

git clone https://github.com/excalidraw/excalidraw.git
cat >> /opt/excalidraw/.yarnrc <<EOF
network-timeout 600000
EOF


 cd /opt/excalidraw/

#yarn config list

yarn config set registry https://registry.npm.taobao.org
yarn config set disturl https://npm.taobao.org/dist

#yarn
yarn install --network-timeout 600000


yarn start